package com.aaa.check.service.impl;


import com.aaa.check.dao.DocheckDao;
import com.aaa.check.service.DocheckService;
import com.aaa.check.vo.DocheckVo;
import com.aaa.entity.CareOrderItem;
import com.aaa.entity.CheckResult;
import com.aaa.vo.Result;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;
import java.util.function.Consumer;

@Service
public class DecheckServiceImpl implements DocheckService {

    @Autowired
    private DocheckDao docheckDao;


    @Override
    public Result<List<CareOrderItem>> findAll(DocheckVo docheckVo) {


            List checkItem = docheckVo.getCheckItem();
            String regId = docheckVo.getRegId();

            List<CareOrderItem> careOrderItems = docheckDao.findAll(checkItem,regId);


        return new Result<>(200,"结果查询",careOrderItems);




    }
}
